package com.fa4j.common.data.model;

import com.fa4j.common.base.model.BaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Schema(description = "字段查询方式")
@Getter
@AllArgsConstructor
public enum QueryType implements BaseEnum {

    EQ(1, "相等"),
    LIKE(2, "模糊"),
    IN(3, "包含"),
    GT(4, "大于"),
    GE(5, "大于等于"),
    LT(6, "小于"),
    LE(7, "小于等于");

    /**
     * 编码
     */
    private final Integer code;

    /**
     * 名称
     */
    private final String name;
}
